package org.djw.system.mapper;

import org.djw.basic.mapper.BaseMapper;
import org.djw.basic.util.PageList;
import org.djw.system.domain.Detail;
import org.djw.system.domain.Type;
import org.djw.system.query.DetailQuery;
import org.djw.system.query.TypeQuery;

import java.util.List;

/**
 * 明细模块mapper层
 */
public interface DetailMapper extends BaseMapper<Detail>{
    void deleteBytypeId(Long typeId);

    /**
     * 根据类型id查询
     * @param query
     * @return
     */
    List<Detail> queryPageType(DetailQuery query);
}

